#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from store.mdb_store import TableStore


class zhiXiaoBinProjectStore(TableStore):
    def __init__(self, config):
        self.table = config.get('table', 'zhi_xiao_bin_detail_project')
        self.table_config = {
            'mdb': config['mdb'],
            'table': self.table,
            'column_dic': {
                'project_id': "INT NOT NULL DEFAULT '0' COMMENT '项目ID'",
                'fund_detail': "text NOT NULL COMMENT '申报要求'",

            },
            'uniq_idx_fields': ['project_id'],
            'update_fields': [
                'fund_detail'
            ],
            'text_fields': [
                'fund_detail'
            ],
            'dump_fields': [
                'fund_detail'
            ]
        }
        super(zhiXiaoBinProjectStore, self).__init__(self.table_config)
